import type { App } from "vue";
import { perm } from "./perm";

/**
 * 导出指令方法：setupDirectives
 * @methods perm 按钮权限，用法: v-perm="'xxx'" 或 v-perm="['xxx', 'yyy']"
 */
export function setupDirectives(app: App): void {
    // 按钮权限指令
    app.directive("perm", perm);
}
